From 399ee3db3fd850230374569923e2595c6493c103 Mon Sep 17 00:00:00 2001 From: Alexander Mikhaylenko Date: Thu, 6 Apr 2023 00:10:09 +0400 Subject: [PATCH] shortcutswindow: Add "shortcuts" style class --- gtk/gtkshortcutswindow.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/gtkshortcutswindow.c b/gtk/gtkshortcutswindow.c index 1c3d6ea667..966c9398b2 100644 --- a/gtk/gtkshortcutswindow.c +++ b/gtk/gtkshortcutswindow.c @@ -87,6 +87,11 @@ * and "Terminal Shortcuts". * * The .ui file for this example can be found [here](https://gitlab.gnome.org/GNOME/gtk/tree/main/demos/gtk-demo/shortcuts-builder.ui). + * + * ## CSS nodes + * + * `GtkShortcutsWindow` has a single CSS node with the name `window` and style + * class `.shortcuts`. */ struct _GtkShortcutsWindow @@ -980,4 +985,5 @@ gtk_shortcuts_window_init (GtkShortcutsWindow *self) g_signal_connect_object (self->stack, "notify::visible-child", G_CALLBACK (update_title_stack), self, G_CONNECT_SWAPPED); + gtk_widget_add_css_class (GTK_WIDGET (self), "shortcuts"); } -- 2.30.2